Skip to main content
Version: 5.x.x

MessageCallbackType


import { MessageCallbackType } from "@hyper-fetch/sockets"

Description

Defined in socket/socket.types.ts:26

Preview

type MessageCallbackType<SocketType,Event> = (event: Event, socket: SocketType) => Event;

Structure

(event: Event, socket: SocketType) => Event